﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Box_games
{
    public partial class Ranking : Form
    {
        public Ranking()
        {
            InitializeComponent();
        }

        private void label2_Click(object sender, EventArgs e)
        {

        }

        private void Form3_Load(object sender, EventArgs e)
        {
            string sql = "select * from Guan order by score desc ";
            DataTable dt= DBHelpe.Select(sql);
            dataGridView2.DataSource = dt;

            string Dan = "select * from Dan order by score desc ";
            DataTable ds = DBHelpe.Select(Dan);
            dataGridView1.DataSource = ds;

        }

        private void button1_Click(object sender, EventArgs e)
        {
            Main f3 = new Main();
            f3.Show();
            this.Hide();
        }

        private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {

        }
    }
}
